import base from './base'
import axios from './http'
import qs from 'qs'         // qs.stringify(params)
const dietitian = {
    showQrcode(params) {        
        return axios.post(`${base.sq}login/showQrcode`, params)         // 我的二维码
    },
    myPatients(params) {        
        return axios.post(`${base.sq}user/myPatients`, params)         // 我的患者列表
    },
    getPatientRemark(params) {        
        return axios.post(`${base.sq}user/getPatientRemark`, params)         // 患者详情
    },
    getPatientOrders(params) {        
        return axios.post(`${base.sq}user/getPatientOrders`, params)         // 患者订单列表
    },
    setPatientRemark(params) {        
        return axios.post(`${base.sq}user/setPatientRemark`, params)         // 患者订单列表
    },
    setPatientRemark(params) {        
        return axios.post(`${base.sq}user/setPatientRemark`, params)         // 患者订单列表
    },
    getVisitTime(params) {        
        return axios.post(`${base.sq}user/getVisitTime`, params)         // 获取预约时间
    },
    setVisitTime(params) {        
        return axios.post(`${base.sq}user/setVisitTime`, params)         // 设置预约时间
    },
    uploadOnePic(params) {        
        return axios.post(`${base.sq}user/uploadOnePic`, params)         // 上传图片
    },
    delOnePic(params) {        
        return axios.post(`${base.sq}user/delOnePic`, params)         // 删除图片
    },
    getHealthRecords(params) {        
        return axios.post(`${base.sq}user/getHealthRecords`, params)         // 获取健康档案
    },
    addHealthRecords(params) {        
        return axios.post(`${base.sq}user/addHealthRecords`, params)         // 添加健康档案
    },
    setDietitianRemark(params) {        
        return axios.post(`${base.sq}user/setDietitianRemark`, params)         // 添加营养师备注
    },
}
export default dietitian